import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  // mode: 'history',
  mode: 'hash',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/techList',
      name: 'TechList',
      meta: {
        secondary: '工具列表'
      },
      component: () => import('./views/materials/TechList.vue')
    },
    {
      path: '/techAddOrEdit',
      name: 'techAddOrEdit',
      meta: {
        thirdLevel: '科技数据录入'
      },
      component: () => import('./views/materials/TechAddOrEdit.vue')
    },
    {
      path: '/articleList',
      name: 'ArticleList',
      meta: {
        secondary: '动态列表'
      },
      component: () => import('./views/articles/ArticleList.vue')
    },
    {
      path: '/articleDetail',
      name: 'ArticleDetail',
      meta: {
        thirdLevel: '动态详情'
      },
      component: () => import('./views/articles/ArticleDetail.vue')
    },
    {
      path: '/articleAdd',
      name: 'ArticleAdd',
      meta: {
        thirdLevel: '新增动态'
      },
      component: () => import('./views/articles/ArticleAdd.vue')
    },
    {
      path: '/articleUpdate',
      name: 'ArticleUpdate',
      meta: {
        thirdLevel: '动态修改'
      },
      component: () => import('./views/articles/ArticleUpdate.vue')
    },
    {
      path: '/recipe-list',
      name: 'RecipeList',
      meta: {
        secondary: '食谱列表'
      },
      component: () => import('./views/recipe/RecipeList.vue')
    },
    {
      path: '/recipeAddOrEdit',
      name: 'RecipeAddOrEdit',
      meta: {
        thirdLevel: '食谱修改或新建'
      },
      component: () => import('./views/recipe/RecipeAddOrEdit.vue')
    },
    {
      path: '/animal-list',
      name: 'AnimalList',
      meta: {
        secondary: '生物列表'
      },
      component: () => import('./views/animal/AnimalList.vue')
    },
    {
      path: '/animal-add-or-edit',
      name: 'AnimalAddOrEdit',
      meta: {
        thirdLevel: '生物修改或新建'
      },
      component: () => import('./views/animal/AnimalAddOrEdit.vue')
    },
    {
      path: '/nature-list',
      name: 'NatureList',
      meta: {
        secondary: '自然列表'
      },
      component: () => import('./views/nature/NatureList.vue')
    },
    {
      path: '/NatureAddOrEdit',
      name: 'NatureAddOrEdit',
      meta: {
        thirdLevel: '自然修改或新建'
      },
      component: () => import('./views/nature/NatureAddOrEdit.vue')
    },
    {
      path: '/heroList',
      name: 'HeroList',
      meta: {
        secondary: '人物列表'
      },
      component: () => import('./views/hero/heroList.vue')
    },
    {
      path: '/heroDetail',
      name: 'HeroDetail',
      meta: {
        thirdLevel: '人物详情'
      },
      component: () => import('./views/hero/heroDetail.vue')
    },
    {
      path: '/heroUpdate',
      name: 'HeroUpdate',
      meta: {
        thirdLevel: '人物更新'
      },
      component: () => import('./views/hero/heroUpdate.vue')
    },
    {
      path: '/heroAdd',
      name: 'HeroAdd',
      meta: {
        thirdLevel: '人物补录'
      },
      component: () => import('./views/hero/heroAdd.vue')
    },
    {
      path: '/mechanism-list',
      name: 'MechanismList',
      meta: {
        secondary: '机制列表'
      },
      component: () => import('./views/mechanism/MechanismList.vue')
    },
    {
      path: '/mechanism-detail',
      name: 'MechanismDetail',
      meta: {
        thirdLevel: '机制详情'
      },
      component: () => import('./views/mechanism/MechanismDetail.vue')
    },
    {
      path: '/add-mechanism',
      name: 'AddMechanism',
      meta: {
        thirdLevel: '机制新增'
      },
      component: () => import('./views/mechanism/AddMechanism.vue')
    },
    {
      path: '/skin-list',
      name: 'SkinList',
      meta: {
        secondary: '皮肤列表'
      },
      component: () => import('./views/skin/SkinList.vue')
    },
    {
      path: '/new-or-edit-skin',
      name: 'NewOrEditSkin',
      meta: {
        thirdLevel: '修改或新增皮肤'
      },
      component: () => import('./views/skin/NewOrEditSkin.vue')
    },
    {
      path: '/friend-list',
      name: 'FriendList',
      meta: {
        secondary: '饥友列表'
      },
      component: () => import('./views/friends/FriendList.vue')
    },
    {
      path: '/feed-back-list',
      name: 'FeedBackList',
      meta: {
        secondary: '反馈列表'
      },
      component: () => import('./views/feedBack/FeedBackList.vue')
    },
    {
      path: '/ForgeHeroList',
      name: 'forgeHeroList',
      meta: {
        secondary: '熔炉角色列表'
      },
      component: () => import('./views/forge/ForgeHeroList.vue')
    },
    {
      path: '/ForgeHeroDetail',
      name: 'forgeHeroDetail',
      meta: {
        thirdLevel: '熔炉角色详情'
      },
      component: () => import('./views/forge/ForgeHeroDetail.vue')
    },
    {
      path: '/ForgeHeroUpdate',
      name: 'forgeHeroUpdate',
      meta: {
        thirdLevel: '熔炉角色新增或修改'
      },
      component: () => import('./views/forge/ForgeHeroUpdate.vue')
    },
    {
      path: '/EquList',
      name: 'equList',
      meta: {
        secondary: '熔炉装备列表'
      },
      component: () => import('./views/forge/EquList.vue')
    },
    {
      path: '/EquUpdate',
      name: 'equUpdate',
      meta: {
        thirdLevel: '熔炉装备新增或修改'
      },
      component: () => import('./views/forge/EquUpdate.vue')
    },
    {
      path: '/AchList',
      name: 'achList',
      meta: {
        secondary: '熔炉成就列表'
      },
      component: () => import('./views/forge/AchList.vue')
    },
    {
      path: '/AchUpdate',
      name: 'achUpdate',
      meta: {
        thirdLevel: '熔炉成就新增或修改'
      },
      component: () => import('./views/forge/AchUpdate.vue')
    },
    {
      path: '/AniList',
      name: 'aniList',
      meta: {
        secondary: '熔炉生物列表'
      },
      component: () => import('./views/forge/AniList.vue')
    },
    {
      path: '/AniUpdate',
      name: 'aniUpdate',
      meta: {
        thirdLevel: '熔炉生物新增或修改'
      },
      component: () => import('./views/forge/AniUpdate.vue')
    },
    {
      path: '/GeographyList',
      name: 'geographyList',
      meta: {
        secondary: '地理列表'
      },
      component: () => import('./views/geography/GeographyList.vue')
    },
    {
      path: '/GeographyAddorUpdate',
      name: 'geographyAddorUpdate',
      meta: {
        thirdLevel: '地理新增或修改'
      },
      component: () => import('./views/geography/GeographyAddorUpdate.vue')
    },
    {
      path: '/GeographyDetail',
      name: 'geographyDetail',
      meta: {
        thirdLevel: '地理详情'
      },
      component: () => import('./views/geography/GeographyDetail.vue')
    },
    {
      path: '/tag',
      name: 'Tag',
      meta: {
        secondary: '标签列表'
      },
      component: () => import('./views/tags/index.vue')
    },
    {
      path: '/config',
      name: 'Config',
      meta: {
        secondary: '配置列表'
      },
      component: () => import('./views/config/index.vue')
    },
    {
      path: '/logs',
      name: 'Logs',
      meta: {
        secondary: '日志列表'
      },
      component: () => import('./views/config/logs.vue')
    },
    {
      path: '/modList',
      name: 'modList',
      meta: {
        secondary: 'mod列表'
      },
      component: () => import('./views/mods/modList.vue')
    },
    {
      path: '/modEdit',
      name: 'modEdit',
      meta: {
        thirdLevel: 'mod详情'
      },
      component: () => import('./views/mods/modEdit.vue')
    },
    {
      path: '/modTag',
      name: 'modTag',
      meta: {
        thirdLevel: 'mod标签'
      },
      component: () => import('./views/mods/modTag.vue')
    },
    {
      path: '/mods/skinAddOrEdit',
      name: 'modSkin',
      meta: {
        thirdLevel: 'mod皮肤'
      },
      component: () => import('./views/mods/skinAddOrEdit.vue')
    },
    {
      path: '/mods/cdkList',
      name: 'cdkList',
      meta: {
        secondary: 'cdk列表'
      },
      component: () => import('./views/mods/cdkList.vue')
    },
    {
      path: '/mods/playerSearch',
      name: 'cdkList',
      meta: {
        secondary: '玩家搜索'
      },
      component: () => import('./views/mods/playerSearch.vue')
    },
    {
      path: '/mods/skinSale',
      name: 'skinSale',
      meta: {
        secondary: '皮肤售卖统计'
      },
      component: () => import('./views/mods/skinSale.vue')
    },
  ]
})
